import request from '@/utils/request'

export function fetchUserRoleList() {
  return request({
    url: '/userroles',
    method: 'get'
  })
}

export function fetchUserRoleById(id) {
  return request({
    url: `/userroles/${id}`,
    method: 'get'
  })
}

export function fetchUserRoleByProjectId(projectId) {
  return request({
    url: `/userroles/${projectId}`,
    method: 'get'
  })
}